package com.ly.hotel.model;

import com.ly.hotel.util.LanguageUtil;

/**
 * 滚动消息数据结构
 */
public class ScrollMessage implements java.io.Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7102092062385432048L;
	public static final int ENABLE = 1;
	public static final int DISABLE = 0;
	//
	private Integer id;
	
	//标题
	private String name;
	
	//状态1启用,0停用
	private Integer status;
	
	//显示开始时间
	private java.util.Date beginTime;
	
	//显示结束时间
	private java.util.Date endTime;
	
	//内容
	private String content;

	
	public Integer getId() {
		return id;
	}
	
	public String getTitle() {
		return name;
	}

	public Integer getStatus() {
		if(status == 10)
			return 1;
		else
			return 0;
	}
	
	public java.util.Date getBeginTime() {
		return beginTime;
	}
	
	public java.util.Date getEndTime() {
		return endTime;
	}
	
	public String getContent() {
		return LanguageUtil.getTextFromLocalLanguage(content,";;");
	}
	
}